package com.term.domain.common;

import com.term.domain.enums.SplitTypeEnums;
import com.term.domain.utils.StitchingSqlTool;

/**
 * Created by chenGang on 2017/1/5.
 */
public class AndConditionSet extends ConditionSet {
    @Override
    public String toString() {
        String res = StitchingSqlTool.joinCollection(conditions, SplitTypeEnums.AND);
        if (res.isEmpty())
            return "";
        else
            return " (" + res + ") ";
    }
}
